<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>关联产品分类</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        基础系数&nbsp;/&nbsp;
        <a lay-href="/product/citypriceratio/list.action">城市价格系数</a>&nbsp;/&nbsp;
        <zmn>快速设置&nbsp;/&nbsp;</zmn>
        <zmn th:text="|${bizType == 1 ? 'C' : bizType == 2 ? 'F': 'B'}分类系数|">保外分类系数</zmn>
    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">

            <div class="layui-card-header" style="margin-top:10px;"><b>如2级分类系数未设置，则默认使用1级分类系数；以此类推，如1级分类系数未设置，则默认使用城市默认系数。</b></div>
            <div class="layui-split">&nbsp;</div>

            <div class="layui-tab layui-tab-brief" lay-filter="servCategoryTab">
                <ul class="layui-tab-title">
                    <th:block th:each="servCategory: ${servCategoryList}">
                        <li th:class="${servCategory.categId == servCategId ? 'layui-this':''}">
                            <a th:text="${servCategory.name}" th:href="|/product/citypriceratio/categoryRatioBatch.action?cityIdStr=${cityIdStr}&servCategId=${servCategory.categId}&bizType=${bizType}&priceType=${priceType}|"></a>
                        </li>
                    </th:block>
                </ul>
                <div class="layui-tab-content">
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
            <div class="zmn-auto-table">
                <div th:replace="product/citypriceratio/batch/_citycategoryoutratiotable::table"/>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    var json = {
        servCategId: [[${servCategId}]],
        size: [[${categOnes.size()}]],
        bizType: [[${bizType}]],
        priceType: [[${priceType}]]
    };
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        city_price_ratio_classify: "product/citypriceratio/zmn.plat.citypriceratio.classify",
    }).use(['index', 'city_price_ratio_classify']);

</script>
</body>
</html>

<script type="text/html" id="toolbar_help">
    <div class="layui-inline" title="帮助" lay-event="CUSTOM_HELP"><i class="layui-icon layui-icon-help"></i></div>
</script>
<script type="text/html" id="help_content">
    <div>
        <label style="font-weight: bold">说明</label> <br/>
        <p>系数展示为：待生效系数/已生效系数</p>
    </div>
</script>